// 文件当前导航类型
export const navTypeList = {
  SOURCE: 'source',
  DEP: 'dep',
  FILE_TYPE: 'fileType',
  USER_RECYCLE: 'userRecycle',
  USER_SHARE_LINK: 'userShareLink',
  USER_SHARE: 'userShare',
  SHARE_TO_ME: 'shareToMe',
  USER_FAV: 'user_fav',
  LINK_SHARE_DESC: 'link_share_desc'
}

// 文件类型
export const fileTypeList = [
  {
    type: [3, 4, 5, 6, 10, 11, 12, 13],
    name: '{userFileType:doc}',
    title: '文档'
  },
  { type: [7], name: '{userFileType:image}', title: '图片' },
  { type: [8], name: '{userFileType:music}', title: '音乐' },
  { type: [9], name: '{userFileType:movie}', title: '视频' },
  { type: [2], name: '{userFileType:zip}', title: '压缩包' },
  { type: [1], name: '{userFileType:others}', title: '其他' }
]

// 文件类型对应的后缀名
export const fileTypes = [
  {
    type: 0,
    name: '文件夹',
    myIcon: 'wenjianjia2',
    suffix: []
  },
  {
    type: 1,
    name: '未知文件',
    myIcon: 'wenjianleixing-biaozhuntu-weizhiwenjian',
    suffix: []
  },
  {
    type: 2,
    name: '压缩文件',
    myIcon: 'yasuobao',
    suffix: ['zip', '7z', 'gzip', 'gz', 'tar', 'rar']
  },
  {
    type: 3,
    name: 'excel 文件',
    myIcon: 'wenjianleixing-biaozhuntu-gongzuobiao',
    suffix: ['xlsx', 'xls', 'csv']
  },
  {
    type: 4,
    name: 'word 文件',
    myIcon: 'wenjianleixing-biaozhuntu-Wordwendang',
    suffix: ['docx', 'doc', 'docm', 'dot']
  },
  {
    type: 5,
    name: 'pdf 文件',
    myIcon: 'wenjianleixing-biaozhuntu-PDFwendang',
    suffix: ['pdf']
  },
  {
    type: 6,
    name: 'txt 文件',
    myIcon: 'wenjianleixing-biaozhuntu-jishiben',
    suffix: ['txt']
  },

  {
    type: 7,
    name: '图片文件',
    myIcon: 'tupianwenjian',
    suffix: [
      'xbm',
      'tif',
      'pjp',
      'svgz',
      'jpg',
      'jpeg',
      'ico',
      'tiff',
      'gif',
      'svg',
      'jfif',
      'webp',
      'png',
      'bmp',
      'pjpeg',
      'avif'
    ]
  },
  {
    type: 8,
    name: '音频文件',
    myIcon: 'wenjianleixing-biaozhuntu-shengyinwenjian',
    suffix: ['mp3', 'wav', 'flac', 'ogg', 'aac']
  },
  {
    type: 9,
    name: '视频文件',
    myIcon: 'wenjianleixing-biaozhuntu-shipinwenjian',
    suffix: [
      'mp4',
      '3gp',
      'avi',
      'wmv',
      'mpeg',
      'mpg',
      'mov',
      'flv',
      'swf',
      'qsv',
      'kux',
      'mpg',
      'rm',
      'ram'
    ]
  },
  {
    type: 10,
    name: 'ppt文件',
    myIcon: 'wenjianleixing-biaozhuntu-huandengpian',
    suffix: ['ppt', 'pptx']
  },
  {
    type: 11,
    name: '代码文件',
    myIcon: 'html',
    suffix: [
      'js',
      'java',
      'c',
      'cpp',
      'py',
      'html',
      'css',
      'less',
      'sass',
      'scss',
      'json',
      'xml',
      'go',
      'htm',
      'php',
      'exe',
      'sh',
      'bat',
      'asm',
      'swift',
      'jsx',
      'vue',
      'ts',
      'tsx',
      'dart',
      'sql',
      'h',
      'vb',
      'cs',
      'yaml',
      'yml',
      'cmd',
      'conf',
      'ini',
      'rb'
    ]
  },
  {
    type: 13,
    name: 'markdown文件',
    myIcon: 'tongyong_MDwenjian',
    suffix: ['md']
  }
]
